cmake_minimum_required(VERSION 3.5.1)
project(SqList
	VERSION 1.0.1
)

set(SQLIST_SRC sqlist.c)

add_library(LSqList STATIC ${SQLIST_SRC})
add_library(lsqlist SHARED ${SQLIST_SRC})

set_target_properties(LSqList PROPERTIES OUTPUT_NAME lsqlist)
#set_target_properties(LSqList PROPERTIES CLEAN_DIRECT_OUTPUT 1)

set_target_properties(lsqlist PROPERTIES OUTPUT_NAME lsqlist)
#set_target_properties(lsqlist PROPERTIES CLEAN_DIRECT_OUTPUT 1)

if(LINUX)
	install(TARGETS lsqlist LIBRARY DESTINATION ${INSTALL_DIR}/lib/${CMAKE_LIBRARY_ARCHITECTURE})
	install(TARGETS LSqList ARCHIVE DESTINATION ${INSTALL_DIR}/lib/liblds)
	install(FILES ${INCLUDE_DIR}/List/sqlist.h
		DESTINATION ${INSTALL_DIR}/include/liblds
	)
endif()
